package com.yuanfeng.job.job;

import com.yuanfeng.job.feign.GoodsServiceClient;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @ClassName UpdateEsGoodsWeightJob
 * @Description 更新ES索引库
 * @Author liulh
 * @Date 2023/5/17 14:45
 * @Version 1.0
 **/
public class UpdateEsGoodsWeightJob implements BaseJob{

    @Autowired
    private GoodsServiceClient goodsServiceClient;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {

        //导入商品数据
        goodsServiceClient.importData();

        //导入店铺数据
        goodsServiceClient.importShopData();
    }
}
